package com.zzj.model.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data

public class ProductAddDTO {
  @NotEmpty(message = "请输入商品条码")
  private String barcode;

  @NotEmpty(message = "请输入商品名称")
  private String name;

  @NotNull(message = "请输入商品售价")
  private BigDecimal price;

  private BigDecimal wholesalePrice;

  private Integer categoryId;

  private String categoryName;

  private Integer supplierId;

  private String supplierName;

  private Integer stock;

  private Integer lowStock;

  private String description;

  private String pictures;
}
